package br.com.gecandango.beans;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Embeddable;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
@Entity
@Table(name="cardapio_refeicao")
public class Cardapio_Refeicao extends Entidade {
	private static final long serialVersionUID = 1L;
	
	@Temporal(TemporalType.DATE)
	private Date data;
	
	public Date getData() {
		return data;
	}
	public void setData(Date data) {
		this.data = data;
	}
	
	
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name="id_refeicao")
	private Refeicao refeicao;
	
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name="id_cardapio")
	private Cardapio cardapio;

	public Refeicao getRefeicao() {
		return refeicao;
	}

	public void setRefeicao(Refeicao refeicao) {
		this.refeicao = refeicao;
	}

	public Cardapio getCardapio() {
		return cardapio;
	}

	public void setCardapio(Cardapio cardapio) {
		this.cardapio = cardapio;
	}
	
}
